package com.sc.study.foundation.domain;

import com.sc.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 课程授课老师对象 sc_subject_teacher
 * 
 * @author sc
 * @date 2022-02-27
 */
public class ScSubjectTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 课程编号 */
    @Excel(name = "课程编号")
    private Long subid;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userid;

    /** 老师 */
    @Excel(name = "老师")
    private SysUser user;

    /** 科目 */
    @Excel(name = "科目")
    private ScSubject scSubject;

    /** 多个课程编号 */
    @Excel(name = "多个课程编号")
    private List<Long> subids;

    public List<Long> getSubids() {
        return subids;
    }

    public void setSubids(List<Long> subids) {
        this.subids = subids;
    }

    public ScSubject getScSubject() {
        return scSubject;
    }

    public void setScSubject(ScSubject scSubject) {
        this.scSubject = scSubject;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public SysUser getUser() {
        return user;
    }

    public ScSubjectTeacher(Long subid, Long userid) {
        this.subid = subid;
        this.userid = userid;
    }

    public ScSubjectTeacher() {
    }



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSubid(Long subid) 
    {
        this.subid = subid;
    }

    public Long getSubid() 
    {
        return subid;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("subid", getSubid())
            .append("userid", getUserid())
            .toString();
    }
}
